package com.snails.mall.elasticsearch.biz.admin.service;

import com.ruyuan.little.project.common.dto.CommonResponse;
import com.ruyuan.little.project.common.dto.TableData;
import com.snails.mall.elasticsearch.biz.admin.dto.AdminGoodsStoreDTO;
import com.snails.mall.elasticsearch.biz.admin.entity.AdminGoodsStore;

/**
 * @author gaoxu
 * date: Created on 2021/11/8 下午3:57
 */
public interface AdminGoodsStoreService {

    /**
     * 根据店铺名称获取店铺列表 从MySQL查
     *
     * @param adminGoodsStoreDTO 店铺分页查询信息
     * @return 结果
     */
    CommonResponse<TableData<AdminGoodsStore>> getStorePageByStoreNameFromDB(AdminGoodsStoreDTO adminGoodsStoreDTO);

    /**
     * 根据店铺名称获取店铺列表 从ES中查
     *
     * @param adminGoodsStoreDTO
     * @return
     */
    CommonResponse<TableData<AdminGoodsStore>> getStorePageByStoreNameFromEs(AdminGoodsStoreDTO adminGoodsStoreDTO);
}
